using derivatives to find maximum and minimum

join shbcf.ru